package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.CoursePricing;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 课程定价标准 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-07-26
 */
@Mapper
public interface CoursePricingMapper extends BaseMapper<CoursePricing> {

    @Select("select * from course_pricing where school_id = ${schoolId} and course_id = ${courseId} and count = ${count} and deleted = 0")
    public CoursePricing getCoursePricingByCourseId(@Param("courseId") Long courseId, @Param("schoolId") Long schoolId, @Param("count") Integer count);

}
